/*
* 高速紧急值守
* */
(function() {
// 紧急值守
    var dataTodyPoliceStatus = { // 今日警情
        policeSituationNum: 87,
        todoPoliceSituationNum: 23,

        warningNum: 23,
        todoWarningNum: 9,

        lastUpdateTime: '17:25:09',
        trafficControlNum: 4,
    };

// policeSituationNum: 1123,
//     todoPoliceSituationNum:123,
//     warningNum: 123,
//     todoWarningNum:12,
//     trafficControlNum:123,
//     lastUpdateTime: "2020-12-1 12:15"

    var realTimePoliceInformationList = {list:[
            {
                id: 0,
                alarmType: 0,
                incidentLocation: "青银高速",
                direction: '南向北',
                alarmTime: '17:28',
                alarmSource: '122平台',
                accidentCarNum: 0,
                isCasualty: 0,
                newProgress: "3分钟前已派警",
                duartion: 26,
                alarmPersonName: '张海生',
                jurisdiction: '同三大队一中队',
                alarmDesc: '辆车追尾，很严重',
                alarmVideo: 'https://www.runoob.com/try/demo_source/movie.mp4'
            },
            {
                id: 1,
                alarmType: 1,
                incidentLocation: "青银高速",
                direction: '南向北',
                alarmTime: '17:28',
                alarmSource: '122平台',
                accidentCarNum: 0,
                isCasualty: 0,
                newProgress: "3分钟前警员已到达",
                duartion: 26,
                alarmPersonName: '张海生',
                jurisdiction: '同三大队一中队',
                alarmDesc: '辆车追尾，很严重',
                alarmVideo: 'https://www.runoob.com/try/demo_source/movie.mp4'
            },
            {
                id: 2,
                alarmType: 2,
                incidentLocation: "青银高速",
                direction: '南向北',
                alarmTime: '17:28',
                alarmSource: '122平台',
                accidentCarNum: 0,
                isCasualty: 0,
                newProgress: "3分钟前已派警",
                duartion: 26,
                alarmPersonName: '张海生',
                jurisdiction: '同三大队一中队',
                alarmDesc: '辆车追尾，很严重',
                alarmVideo: 'https://www.runoob.com/try/demo_source/movie.mp4'
            },
        ],total:3};
    var realTimePoliceInformationDetail={
        id: 0,
        alarmVideo: "视频链接",
        alarmPersonPhone: "报警人电话",
        alarmPersonName: "报警人姓名",
        jurisdiction: "所属辖区",
        alarmTime: "报警时间",
        incidentLocation: "青银高速",
        newProgress: "最新进展",
        alarmSource: "警情来源",
        alarmDesc: "警情描述"
    };



    var riskWarningList = {list:[
            // {id:风险预警id, warningLoaction: 预警位置, warningTime: 预警时间, duartion: 持续时间}
            {warningTime: "06:00", warningLoaction: '青银高速', highSpeedName: '青银高速', detailLocation: "K300上行", trafficFlow: 603, largeCarRate: 0.39,duartion:6,id:0},
            {warningTime: "07:00", warningLoaction: '青银高速', highSpeedName: '青银高速', detailLocation: "K600下行", trafficFlow: 673, largeCarRate: 0.22,duartion:8,id:2},
            {warningTime: "08:31", warningLoaction: '青新高速', highSpeedName: '青新高速', detailLocation: "K580上行", trafficFlow: 607, largeCarRate: 0.37,duartion:3,id:3},
            {warningTime: "09:40", warningLoaction: '威青高速', highSpeedName: '威青高速', detailLocation: "K200上行", trafficFlow: 603, largeCarRate: 0.28,duartion:40,id:4},
            {warningTime: "10:50", warningLoaction: '龙青高速', highSpeedName: '龙青高速', detailLocation: "K100上行", trafficFlow: 678, largeCarRate: 0.23,duartion:30,id:5},
            {warningTime: "12:30", warningLoaction: '沈海高速', highSpeedName: '沈海高速', detailLocation: "K300上行", trafficFlow: 623, largeCarRate: 0.24,duartion:23,id:6},
            {warningTime: "13:20", warningLoaction: '沈海高速', highSpeedName: '沈海高速', detailLocation: "K450下行", trafficFlow: 610, largeCarRate: 0.32,duartion:14,id:7},
            {warningTime: "14:30", warningLoaction: '荣潍高速', highSpeedName: '荣潍高速', detailLocation: "K200上行", trafficFlow: 620, largeCarRate: 0.33,duartion:31,id:8},
            {warningTime: "15:40", warningLoaction: '新潍高速', highSpeedName: '新潍高速', detailLocation: "K400上行", trafficFlow: 691, largeCarRate: 0.32,duartion:24,id:9},
            {warningTime: "16:50", warningLoaction: '荣乌高速', highSpeedName: '荣乌高速', detailLocation: "K400上行", trafficFlow: 611, largeCarRate: 0.39,duartion:14,id:10},
            {warningTime: "20:00", warningLoaction: '青兰高速', highSpeedName: '青兰高速', detailLocation: "K100上行", trafficFlow: 624, largeCarRate: 0.24,duartion:18,id:11},

        ],total:6};
    var riskWarningDetail2 = {
        id:1,
        largeCarRate:'大车占比',
        realTimeTrafficFlow:'实时流量',
    };

//散列图
    var riskWarningDetail =[
        {
            yellow: "0",
            flow: 65,
            big: 0.05
        },
        {
            yellow: "0",
            flow: 104,
            big: 0.63
        },
        {
            yellow: "0",
            flow: 60,
            big: 0.47
        },
        {
            yellow: "0",
            flow: 48,
            big: 0.5
        },
        {
            yellow: "0",
            flow: 42,
            big: 0.4
        },
        {
            yellow: "0",
            flow: 56,
            big: 0.55
        },
        {
            yellow: "0",
            flow: 5,
            big: 0.6
        },
        {
            yellow: "1",
            flow: 265,
            big: 0.2
        },
        {
            yellow: "0",
            flow: 55,
            big: 0.65
        },
        {
            yellow: "0",
            flow: 390,
            big: 0.05
        },
        {
            yellow: "0",
            flow: 122,
            big: 0.06
        },
        {
            yellow: "1",
            flow: 214,
            big: 0.21
        },
        {
            yellow: "0",
            flow: 254,
            big: 0.16
        },
        {
            yellow: "0",
            flow: 57,
            big: 0.16
        },
        {
            yellow: "1",
            flow: 261,
            big: 0.2
        },
        {
            yellow: "0",
            flow: 321,
            big: 0.03
        },
        {
            yellow: "0",
            flow: 134,
            big: 0.01
        },
        {
            yellow: "1",
            flow: 222,
            big: 0.22
        },
        {
            yellow: "1",
            flow: 209,
            big: 0.23
        },
        {
            yellow: "0",
            flow: 123,
            big: 0.13
        },
        {
            yellow: "0",
            flow: 420,
            big: 0.03
        },
        {
            yellow: "1",
            flow: 285,
            big: 0.21
        },
        {
            yellow: "0",
            flow: 26,
            big: 0.04
        },
        {
            yellow: "0",
            flow: 126,
            big: 0.04
        },
        {
            yellow: "0",
            flow: 179,
            big: 0.3
        },
        {
            yellow: "1",
            flow: 267,
            big: 0.24
        },
        {
            yellow: "0",
            flow: 8,
            big: 0.25
        },
        {
            yellow: "0",
            flow: 81,
            big: 0.49
        },
        {
            yellow: "0",
            flow: 195,
            big: 0.24
        },
        {
            yellow: "0",
            flow: 944,
            big: 0.04
        },
        {
            yellow: "0",
            flow: 236,
            big: 0.39
        },
        {
            yellow: "0",
            flow: 748,
            big: 0.01
        },
        {
            yellow: "0",
            flow: 465,
            big: 0.02
        },
        {
            yellow: "0",
            flow: 49,
            big: 0.2
        },
        {
            yellow: "0",
            flow: 506,
            big: 0.02
        },
        {
            yellow: "0",
            flow: 447,
            big: 0.05
        },
        {
            yellow: "0",
            flow: 147,
            big: 0.27
        },
        {
            yellow: "0",
            flow: 151,
            big: 0.27
        },
        {
            yellow: "0",
            flow: 143,
            big: 0.42
        },
        {
            yellow: "0",
            flow: 139,
            big: 0.45
        },
        {
            yellow: "0",
            flow: 139,
            big: 0.45
        },
        {
            yellow: "0",
            flow: 68,
            big: 0.46
        },
        {
            yellow: "0",
            flow: 809,
            big: 0.03
        },
        {
            yellow: "1",
            flow: 239,
            big: 0.26
        },
        {
            yellow: "0",
            flow: 98,
            big: 0.44
        },
        {
            yellow: "0",
            flow: 178,
            big: 0.02
        },
        {
            yellow: "0",
            flow: 387,
            big: 0.03
        },
        {
            yellow: "1",
            flow: 219,
            big: 0.28
        },
        {
            yellow: "0",
            flow: 31,
            big: 0.65
        },
        {
            yellow: "0",
            flow: 675,
            big: 0.02
        },
        {
            yellow: "0",
            flow: 79,
            big: 0.1
        },
        {
            yellow: "0",
            flow: 64,
            big: 0.11
        },
        {
            yellow: "0",
            flow: 915,
            big: 0.01
        },
        {
            yellow: "0",
            flow: 270,
            big: 0.31
        },
        {
            yellow: "0",
            flow: 200,
            big: 0.31
        },
        {
            yellow: "0",
            flow: 187,
            big: 0.23
        },
        {
            yellow: "0",
            flow: 93,
            big: 0.47
        },
        {
            yellow: "0",
            flow: 310,
            big: 0.2
        },
        {
            yellow: "0",
            flow: 185,
            big: 0.37
        },
        {
            yellow: "0",
            flow: 69,
            big: 0.23
        },
        {
            yellow: "0",
            flow: 184,
            big: 0.25
        },
        {
            yellow: "0",
            flow: 144,
            big: 0.09
        },
        {
            yellow: "0",
            flow: 56,
            big: 0.09
        },
        {
            yellow: "0",
            flow: 148,
            big: 0.36
        },
        {
            yellow: "0",
            flow: 126,
            big: 0.13
        },
        {
            yellow: "0",
            flow: 23,
            big: 0.87
        },
        {
            yellow: "0",
            flow: 15,
            big: 0.87
        },
        {
            yellow: "0",
            flow: 14,
            big: 0.79
        },
        {
            yellow: "0",
            flow: 17,
            big: 0.82
        },
        {
            yellow: "0",
            flow: 18,
            big: 0.83
        },
        {
            yellow: "0",
            flow: 3,
            big: 1.0
        },
        {
            yellow: "0",
            flow: 28,
            big: 0.86
        },
        {
            yellow: "0",
            flow: 11,
            big: 0.91
        },
        {
            yellow: "0",
            flow: 24,
            big: 0.63
        },
        {
            yellow: "0",
            flow: 16,
            big: 0.63
        },
        {
            yellow: "0",
            flow: 2,
            big: 1.0
        },
        {
            yellow: "0",
            flow: 27,
            big: 0.67
        },
        {
            yellow: "0",
            flow: 28,
            big: 0.89
        }
    ];
     //32
    var trafficControlList ={list: [
            // {id:1,type: 0, road: "青银高速", direction: '南向北', time: '17:28', duration: 26},
            {id:1,controlType: 0, name: "青银高速", direction: '南向北', beginTime: '17:28', timeLong: 26},
            {id:2,controlType: 1, name: "青银高速", direction: '南向北', beginTime: '17:28', timeLong: 26},
            {id:3,controlType: 1, name: "青银高速", direction: '南向北', beginTime: '17:28', timeLong: 26},
        ],total:3};

    var trafficControDetail =  {id:0,type: 0, road: "青银高速", direction: '南向北', time: '17:28', duration: 26}

    if(!window.jmock){
        window.jmock = {}
    }
    var objs =  {
        dataTodyPoliceStatus, realTimePoliceInformationList, riskWarningList,riskWarningDetail,
        trafficControlList,
        realTimePoliceInformationDetail,
        trafficControDetail,
    }
    Object.assign(window.jmock,objs)
    console.log(window.jmock)

})()
